﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BawangMemo.BackendModels
{
    [Serializable]
    public class WordInfo
    {
        #region Properties

        public int WordId { get; set; }
        public int Proficiency { get; set; }
        public int MemCount { get; set; }
        public int OldBucket { get; set; }
        public int Bucket { get; set; }
        public bool Activated { get; set; }
        public double TotalProficiency { get; set; }
        public int TotalMemCount { get; set; }

        #endregion

        public WordInfo(int wordId)
        {
            TotalMemCount = 0;
            TotalProficiency = 0.0;
            WordId = wordId;
            Proficiency = 0;
            MemCount = 0;
            OldBucket = 0;
            Bucket = 0;
            Activated = true;
        }

        public bool isNewWord()
        {
            return OldBucket == 0;
        }
    }
}
